package com.petdog.infrastructure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.petdog.infrastructure.entity.UserGuideHistory;
import org.apache.ibatis.annotations.Param;

public interface UserGuideHistoryMapper extends BaseMapper<UserGuideHistory> {
    // 记录用户浏览历史
    void insertHistory(@Param("userId") Long userId, @Param("guideId") Long guideId);
    
    // 更新浏览时长
    void updateDuration(@Param("userId") Long userId, @Param("guideId") Long guideId, @Param("duration") Integer duration);
}